package org.tissou.server.Services;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import org.tissou.client.Services.EntrerTransactionService;
import org.tissou.client.Services.Parametres;
import org.tissou.client.Services.MonException;
import org.tissou.server.Operations.OperationFactory;

/**
 * Created by IntelliJ IDEA.
 * User: Claire
 * Date: 17-Mar-2009
 * Time: 22:44:08
 * To change this template use File | Settings | File Templates.
 */
public class EntrerTransactionServiceImpl extends RemoteServiceServlet implements EntrerTransactionService {
  public void EntrerTransaction(Parametres p) throws MonException {
    try {
    OperationFactory.CreerOperation(p).Entrer_Transactions();
    } catch (MonException e) {
      throw e;
    } catch (NullPointerException e) {
      throw new MonException("Desole mais ya un truc qui etait tout nul et du coup j'ai pas pu gerer.");
    }
  }
}